package uk.ac.glasgow.demosocs.electionstore;
import java.util.Date;
import java.util.Set;

import uk.ac.glasgow.demosocs.Election;
public interface ElectionStore {

	public void addElection(
			String id,
			String type);
		
	/**
	 * Returns a user specified by the GUID, if authentication is
	 * successful.
	 * 
	 * @param GUID
	 *            the user's GUID
	 * @param password
	 *            the user's password
	 * @return the user specified by the GUID, if the password
	 * matches that of
	 *         the user.
	 */
	public Election getElection(String id);
	public Set<Election> getElections();
	public void editElection(String electionId, Date openNominations, Date start, Date end, String electoratelectionID);

}
